<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php include Doo::conf()->SITE_PATH .  Doo::conf()->PROTECTED_FOLDER . "viewc//header.php"; ?>
</head>
<body id='main-site-body'>
<?php include Doo::conf()->SITE_PATH .  Doo::conf()->PROTECTED_FOLDER . "viewc//menu.php"; ?>
<div id='main-site-globalbo'>
	<a title="logo" href="<?php echo $data['baseurl']; ?>admin"><img id="logo" alt="logo" src="<?php echo $data['baseurl']; ?>global/img/globalbo/logo.png"></a>
	<h1>Gestion des utilisateurs</h1>
	<div id="main-site-globalbo-submenu">
		<a href="<?php echo $data['baseurl']; ?>admin/options">Privilèges</a>
		<a href="<?php echo $data['baseurl']; ?>admin/options/modules">Modules</a>		
	</div>

	<div id="main-site-globalbo-options">
	<?php if( !empty($data['users']) ): ?>
		<p>Ajouter utilisateurs</p>
			<table border="1" style='border-collapse: collapse;'>
			<tr>
				<th>	Login	</th> 
				<th>	Nom		</th>
				<th>	Mail	</th>
				<th>	Groupe	</th>
				<th>	Actions	</th>
			</tr>
				<?php foreach($data['users'] as $k1=>$v1): ?>
					<tr>
						<td><?php echo $v1->usr_login; ?>	</td>
						<td><?php echo $v1->usr_name; ?>	</td>
						<td><?php echo $v1->usr_mail; ?>	</td>
						<td></td>
						<td id="user_<?php echo $v1->usr_id; ?>"><span class="edit action">Edit</span> <span class="suppr action">Suppr</span>	</td>
					</tr>
				<?php endforeach; ?>
			</table>
		<?php endif; ?>
		
		<?php if( !empty($data['modules']) ): ?>
			<p>Modules </p>
			<table border="1" style='border-collapse: collapse;'>
			<tr>
				<th>	Module	</th> 
				<th colspan="<?php echo $data['maxRow']; ?>">	fonction</th>
			</tr>
			<?php foreach($data['modules'] as $k1=>$v1): ?>
				<tr><?php echo $v1; ?></tr>
			<?php endforeach; ?>
			</table>
		<?php endif; ?>
	</div>
</div>
</body>
</html>